home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
tspa2560.zip
/
TSUNTF.INT
< prev
next >
Wrap
Text File
|
1991-10-27
|
3KB
|
76 lines
{$B-,F-,I+,N-,V+}
{$S+}
{$R-}
{$D-}
(*
Timo Salmi UNiT F
A Turbo Pascal unit for readln with string editing
All rights reserved 19-Aug-89
Updated 4-Sep-89, 24-Sep-89, 21-Mar-90, 14-Jun-90
TSUNTF first appeared in release TSPAS13 of my Turbo Pascal units package.
This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
ANY other usage, such as use in a business enterprise or a university,
contact the author for the terms of registration.
The units are under development. Comments and contacts are solicited. If
you have any questions, please do not hesitate to use electronic mail for
communication.
InterNet address: ts@chyde.uwasa.fi (preferred)
Funet address: GADO::SALMI
Bitnet address: SALMI@FINFUN
The author shall not be liable to the user for any direct, indirect or
consequential loss arising from the use of, or inability to use, any unit,
program or file howsoever caused. No warranty is given that the units and
programs will work under all circumstances.
Timo Salmi
Professor of Accounting and Business Finance
School of Business Studies, University of Vaasa
P.O. BOX 297, SF-65101 Vaasa, Finland
*)
unit TSUNTF;
(* ======================================================================= *)
interface
(* ======================================================================= *)
uses Dos,
Crt;
(* An enhanced readln with the possibility of editing input strings
using insert mode
The functional edit keys are
BackSpace
Del
CursorLeft
CursorRight
Home
End
Esc *)
procedure EDRDLN (prompt : string; var InputString : string);
(* This version gives the possibility of recalling a string by pressing
the CursorUp key. Insert key is also functional *)
procedure EDREADLN (prompt : string;
RecallString : string;
var InputString : string);
(* This is the most versatile of the enhanced readln. It has the same
characteristics as EDRDLN and EDREADLN, plus it detects whether the
break has been pressed. Furthermore, the maximum witdth of the screen
is given as a parameter (MaxLength) which is very useful if you
application makes windows.
*)
procedure EDREABLN (Prompt : string;
RecallString : string;
MaxLength : integer;
var InputString : string;
var BreakPressed : boolean);